{include file="public/head" /}
{include file="public/js_ueditor" /}
<!--有理想的地方，地狱都是天堂-->
<!--Copyright @ df81.com 版权所有-->
<!--作者: 南国老符 邮箱：1062129401@qq.com-->
        <!-- 左侧菜单 开始 -->
        <div class="sidebar">
            <nav>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_content" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_data" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_global" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_system" /}
                </ul>
            </nav>
        </div>
        <!-- 左侧菜单 结束 -->
    </aside>
    <!-- 左侧 结束 -->
    <!-- 右侧 开始 -->
    <div class="content-wrapper">
        <!-- 内容导航 开始 -->
        <div class="content-header py-2 bg-white mb-3">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-sm-12">
                        <ol class="breadcrumb">
                            <li>{:lang('g_system')} {:lang('v_setting')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('g_system')} {:lang('v_setting')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('v_social')} {:lang('v_login')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('v_qq_platform')}</li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <!-- 内容导航 结束 -->
        <!-- 内容主体 开始 -->
        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card card-outline card-success">
                            <div class="card-header"><i class="fas fa-fw fa-cogs mr-1"></i>{:lang('v_config_setting')}</div>
                            <div class="card-body">
                                <form name="form_edit" id="form_edit" method="post" action="{:url('/social/edit',['lang'=>$lang])}">
                                    <input type="hidden" name="lang" value="{$lang}">
                                    <input type="hidden" name="type" value="{:input('type')}">
                                    <div class="row form-group text-primary">
                                        <div class="offset-md-3 col-md-4"><i class="fab fa-qq mr-2"></i>{:lang('v_qq_platform')} 【 <a class="text-primary" href="https://connect.qq.com/manage.html" target="_blank">{:lang('v_apply')} &raquo;</a> 】</div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-3 col-form-label text-right">APP ID</div>
                                        <div class="col-md-4">
                                            <input type="text" class="form-control" name="qq_appid" value="{:config('social.qq.app_key')}" />
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-3 col-form-label text-right">App Key</div>
                                        <div class="col-md-4">
                                            <input type="text" class="form-control" name="qq_appkey" value="{:config('social.qq.app_secret')}" />
                                        </div>
                                    </div>
                                    <div class="row form-group">
                                        <div class="col-md-3 col-form-label text-right">{:lang('v_callback_url')}</div>
                                        <div class="col-md-4 text-muted">
                                            <input type="text" class="form-control" name="qq_callback" value="{:config('social.qq.callback')}" />
                                            http(s)://www.{:lang('v_yourdomain')}.com/api/social/callback.html?type=qq
                                        </div>
                                    </div>
                                    <div class="row">
                                        <div class="offset-md-3 col-md-9 mb-4">
                                            {if is_file(app()->getRootPath().'.env')}
                                                <button type="submit" class="btn btn-success mr-4"><i class="fa fa-check-circle mr-2"></i>{:lang('v_save')}</button>
                                            {else /}
                                                <button type="button" class="do_ajax btn btn-success mr-4" onclick="javascript:do_ajax('#form_edit','.do_ajax','{:url('/social/edit',['lang'=>$lang])}','{:url('/social/index',['lang'=>$lang])}');"><i class="fas fa-check-circle mr-2"></i>{:lang('v_save')}</button>
                                            {/if}
                                            <button type="button" class="btn btn-default" onclick="javascript:history.back(-1);"><i class="fa fa-angle-double-left mr-1"></i>{:lang('v_goback')}</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- 内容主体 结束 -->
    </div>
    <!-- 右侧 结束 -->
{include file="public/foot" /}
</body>
</html>